Merry Christmas everybody. It’s my 3rd day back to Vancouver. I’m trying to update this blog FIRSTLY written in September.
To write something about Raspberry Pi is to say GOOD BYE to my Raspberry Pi 3B, and WELCOME Raspberry Pi 4 at the same time. Our target today is to build an AI edge computing end as the following video:
1. Raspberry Pi 3B+ vs. Raspberry Pi 4
Before everythig starts, let’s carry out a simple comparison between Raspberry Pi 4 and Raspberry Pi 3B+.
2. Movidius Neural Compute Stick on Raspberry Pi 4
Then, we just follow the following 2 blogs Run NCS Applications on Raspberry Pi and Adding AI to the Raspberry Pi with the Movidius Neural Compute Stick to utilize the outdated Intel Movidius Neural Compute Stick:

Intel Movidius Neural Compute Stick 1 is NOT listed on Intel’s official website any more. But github support for Intel Movidius Neural Compute Stick 1 can be found at https://github.com/movidius/ncsdk.
2.1 NCSDK Installation
We FIRST need to have ncsdk installed. Yup, here, as described in Run NCS Applications on Raspberry Pi, we carry out the installation directly under folder ...../ncsdk/api/src.
1 | ➜ src git:(ncsdk2) ✗ make -j4 |
2.2 Test NCSDK Example Apps
1 | ➜ python hello_ncs.py |
3. Caffe Support
3.1 Prerequisite Packages
Prerequisite:
For simplicity, you can grab the above three packages directly from Raspbian’s repository. However, it seems the default boost from Raspbian’s repository does NOT support python3 but ONLY python2. Therefore, in my case, I built boost 1.71, flann 1.9.1 and OpenCV 4.1.1 from sractch from source.
3.2 Cross-compile For flann
The reason why we need to cross-compile flann is because of the limited memory of Raspberry Pi 3B.
In my case, I’m using crosstool-NG and following blog: RPi Linaro GCC Compilation to carry out my cross-compiling. Details about cross-compiling can be found in my next blog Build Toolchain Using Crosstool-NG
3.2.1 Additional Issue: BCM2837 is detected as BCM2835
1 | ➜ ~ cat /proc/cpuinfo |
This issue seems to be an OLD topic. More details about the development history of Raspberry Pi can be found on Wikipedia.
3.3 Build Caffe From Source
Then, we build Caffe 1 from source.


























